<?php
	$xtpl_main->assign ( "page_title", "Member Control Panel" );
	//--
	if(!isset($_SESSION['member_id']) || $_SESSION['member_id'] == ''){
		header("Location: ?mod=member&act=login");
	}
	//-- List all control
	$resultCount = mysql_query("SELECT control.movie_name, control.movie_price, control.number_movie, control.amount 
										FROM member 
										INNER JOIN control ON member.member_id = control.member_id 
										WHERE member_id = '".$_SESSION['member_id']."' 
										");
	$iCountControl = 0;
	while($rowControl = mysql_fetch_array($resultCount)){
		$iCountControl++;
		$rowControl['iCountControl'] = $iCountControl;
		//--
		$xtpl->assign('list_control', $rowControl);
		$xtpl->parse('center.list_control');
	}
?>